<template>
    <div>
        角色名:<van-field v-model="name"/>
        <!-- 资源名称：<van-field v-model="url"/> -->
        <van-button @click="add">添加</van-button>

    </div>
</template>

<script>
    export default {
        data(){
            return{
                name:'',
                
            }
        },
        methods:{
            add(){
                    this.$axios.post('admin/',{'name':this.name}).then(resp=>{

                })
            }
        }
        
    }
</script>

<style scoped>

</style>